package cn.aixuxi.notebank.mapper;

import cn.aixuxi.notebank.entity.RolePermissionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色-权限表相关操作
 *
 * @author : ruozhuliufeng
 * @date : 2020/12/9 12:12
 */
@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermissionEntity> {
    /**
     * 功能描述: 根据角色ID获取权限ID
     *
     * @param id 角色ID
     * @return : java.lang.Integer
     * @author : ruozhuliufeng
     * @date : 2020/12/9 12:32
     */
    List<Integer> findPermissionByRoleId(Integer id);
}
